package com.abc.cloud.service;

import com.abc.cloud.dto.menu.MenuDto;
import com.abc.cloud.dto.menu.MenuTree;
import com.abc.cloud.vo.menu.MenuSave;
import com.abc.cloud.vo.menu.MenuUpdate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.MenuEntity;

import java.util.List;
import java.util.Map;

/**
 * 菜单表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-10-27 13:09:54
 */
public interface MenuService extends IService<MenuEntity> {

    PageUtil queryPage(Map<String, Object> params);

    List<MenuEntity> queryUserMenuList(Long userId);

    List<MenuEntity> getMenuAllList();

    List<MenuTree> getMenuList();

    MenuEntity updateMenu(MenuUpdate adminMenuUpdate);

    MenuEntity saveMenu(MenuSave adminMenuSave);

    List<MenuEntity> getParentMenu();

    List<MenuDto> getUserMenu(String username);
}

